﻿<%@ Page EnableViewState="false" Language="C#" AutoEventWireup="true" CodeBehind="Forum.aspx.cs"
    Inherits="DDDProjectSample.WebUI.Forum" MasterPageFile="~/Page.Master" %>

<asp:Content ContentPlaceHolderID="HeaderMenuContentPlaceHolder" runat="server">
    <a href="<%= ResolveUrl("~/Default.aspx") %>">Home</a> <a href="<%= ResolveUrl(String.Concat("~/NewTopic.aspx?ForumId=", Request.QueryString["Id"])) %>">
        New topic</a>
</asp:Content>
<asp:Content ContentPlaceHolderID="LeftContentPlaceHolder" runat="server">
    <asp:Repeater ID="RepeaterTopics" runat="server">
        <ItemTemplate>
            <h2>
                <a href="<%# ResolveUrl(String.Format("~/Topic.aspx?Id={0}&ForumId={1}", Eval("Id"), Request.QueryString["Id"])) %>">
                    <%# HttpUtility.HtmlEncode(Eval("Title").ToString()) %></a></h2>
            <%--<p>
                <%# HttpUtility.HtmlEncode(Eval("Description").ToString()) %></p>--%>
            <p class="date">
                <span>Created by
                    <%# Eval("Author.Login") %>,
                    <%# Eval("CreationDate") %></span>
                <img src="images/more.gif" alt="" />
                <a href="<%# ResolveUrl(String.Format("~/Topic.aspx?Id={0}&ForumId={1}", Eval("Id"), Request.QueryString["Id"])) %>">
                    Access</a></p>
        </ItemTemplate>
    </asp:Repeater>
</asp:Content>
